/**
 * 
 */
package com.gragra.functionalIdentification;
import it.unimi.dsi.fastutil.ints.IntIterator;
import com.gragra.frameStatistics.CoOccurrenceStatistics;
/**
 * @author Christoph Teichmann
 * 13.08.2013
 */
public class HighFrequencyScorer extends LowTypeTokenScorer
{

	/* (non-Javadoc)
	 * @see com.gragra.functionalIdentification.LowTypeTokenScorer#addToSorter(com.gragra.frameStatistics.CoOccurrenceStatistics, it.unimi.dsi.fastutil.ints.IntIterator)
	 */
	@Override
	protected void addToSorter(CoOccurrenceStatistics cos, IntIterator iit)
	{
		while(iit.hasNext())
		{
			int word = iit.nextInt();
			double val = cos.getWordCount(word);
			this.putIntoMap(word, -val);
		}
	}
}